import request from "@/utils/request";
//列表
const index = params => {
  return request({
    url: "/admin/system.Role/index",
    method: "post",
    data: params
  });
};
//添加
const add = params => {
  return request({
    url: "/admin/system.Role/add",
    method: "post",
    data: params
  });
};
//详情
const detail = params => {
  return request({
    url: "/admin/system.Role/detail",
    method: "post",
    data: params
  });
};
//编辑
const edit = params => {
  return request({
    url: "/admin/system.Role/edit",
    method: "post",
    data: params
  });
};
//删除
const _delete = params => {
  return request({
    url: "/admin/system.Role/delete",
    method: "post",
    data: params
  });
};

export default {
  index,
  add,
  detail,
  edit,
  _delete
};
